package com.share.barter.utils.exception;

/**
 * @author  Tumi
 * 日期：2012-10-8
 */
public class BusinessException extends Exception{

	private String errorMessage="";
	private String errorcode ="";
	/**
	 * 
	 * @param errorMessage 错误原因
	 */
	public BusinessException(String errorcode,String errorMessage){
		super(errorMessage);
		this.errorMessage = errorMessage;
		this.errorcode = errorcode;
	}
	
	public BusinessException(String errorMessage){
		super(errorMessage);
		this.errorMessage = errorMessage;
	}
	
	public String toString(){
		return "errorMessage："+errorMessage+" errorCode:"+errorcode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public String getErrorcode() {
		return errorcode;
	}

	public void setErrorcode(String errorcode) {
		this.errorcode = errorcode;
	}
}
